package com;
public class bubbleSort {
    public void bubbleSort(int[] a) {
        int length = a.length;
        for (int i = 0; i < a.length; i++) {
            int temp;
            char j = 0;
            if (a[j] > a[j + 1]) {
                for (int j = 0; j < a.length - i - 1; j++) {
                    a[j] = a[j + 1];
                    temp = a[j];
                    a[j + 1] = temp;
                }
            }
        }
    }
}